<?php
/**
 * Groups configuration for default Minify implementation
 * @package Minify
 */

/** 
 * You may wish to use the Minify URI Builder app to suggest
 * changes. http://yourdomain/min/builder/
 *
 * See http://code.google.com/p/minify/wiki/CustomSource for other ideas
 **/

$jsDir = "../js/dev/";
$commonDir = $jsDir . "common/";
$indexDir = $jsDir . "index/";
$adminDir = $jsDir . "admin/";

$commonJs = array(
	$commonDir . "jquery-1.8.2.min.js",
	$commonDir . "jquery-ui-1.9.2.custom.min.js",
	$commonDir . "jquery.dataTables.min.js",
	$commonDir . "dataTables.fnReloadAjax.js",
	$commonDir . "bootstrap.min.js",
	$commonDir . "common.js"
);

$indexJs = array(
	$indexDir . "commonindex.js",
	$indexDir . "jquery.mynotation.js"
);

$adminJs = array(
		$adminDir . "jquery.uploadify.min.js",
		$adminDir . "DT_bootstrap.js"
);

$cssDir = "../css/";
$cssIndexDir = $cssDir."index/";
$cssAdminDir = $cssDir."admin/";

$commonCss = array(
		$cssDir . "reset.css",
		$cssDir . "jquery-ui-1.9.2.custom.min.css",
		$cssDir . "bootstrap.min.css",
		$cssDir . "font-awesome.min.css",
		$cssDir . "base.css",
		$cssDir . "formulaire.css"
);

$indexCss = array(
		$cssIndexDir . "layout.css"
);

$adminCss = array(
		$cssAdminDir . "layoutadmin.css",
		$cssAdminDir . "DT_bootstrap.css",
		$cssAdminDir . "table.css",
		$cssAdminDir . "colorpicker.css"
);
 
return array(
															//JS
	//Index
	"index_index" => array_merge($commonJs, $indexJs, array(
		$indexDir . "index/ayaSlider-minified.js",
		$indexDir . "index/index.js"
	)),
		
	"index_catalogue" => array_merge($commonJs, $indexJs
	),
		
	"index_listeproduits" => array_merge($commonJs, $indexJs, array(
		$indexDir . "listeproduits/listeproduits.js",
	)),
		
	"index_actualite" => array_merge($commonJs, $indexJs, array(
		$indexDir . "actualite/actualite.js",
	)),
		
	"index_contact" => array_merge($commonJs, $indexJs
	),
		
	//ADMIN	
	"admin_login" => array_merge($commonJs, $adminJs, array(
			$adminDir . "login/login.js",
	)),
		
	"admin_categorie" => array_merge($commonJs, $adminJs, array(
			$adminDir . "categorie/categorie.js",
	)),
		
	"admin_article" => array_merge($commonJs, $adminJs, array(
			$adminDir . "article/colorpicker.js",
			$adminDir . "article/article.js",
	)),
		
	"admin_actualite" => array_merge($commonJs, $adminJs, array(
			$adminDir . "actualite/actualite.js",
	)),
		
																	//CSS
		
	//Index
	"css_index_index" => array_merge($commonCss, $indexCss, array(
		$cssIndexDir."index/index.css",
	)),
		
	"css_index_catalogue" => array_merge($commonCss, $indexCss, array(
		$cssIndexDir."catalogue/catalogue.css",
	)),
		
	"css_index_listeproduits" => array_merge($commonCss, $indexCss, array(
			$cssIndexDir."listeproduits/listeproduits.css",
	)),
	
	"css_index_actualite" => array_merge($commonCss, $indexCss, array(
			$cssIndexDir."actualite/actualite.css",
	)),
	
	"css_index_contact" => array_merge($commonCss, $indexCss, array(
			$cssIndexDir."contact/contact.css",
	)),
		
	//Admin
	"css_admin_login" => array_merge($commonCss, $adminCss, array(
			$cssAdminDir."login/login.css",
	)),
	
	"css_admin_categorie" => array_merge($commonCss, $adminCss, array(
			$cssAdminDir."categorie/categorie.css",
	)),
	
	"css_admin_article" => array_merge($commonCss, $adminCss, array(
			$cssAdminDir."article/article.css",
	)),
	
	"css_admin_actualite" => array_merge($commonCss, $adminCss, array(
			$cssAdminDir."actualite/actualite.css",
	)),
);